package com.jxau.mall.user.model;

import com.jxau.mall.common.util.EncryptUtils;
import com.jxau.mall.user.entity.UserReceiveAddress;

import java.io.Serializable;

/**
 * @program: shop
 * @description: 收件地址DTO类
 * @author: guojiani
 * @create: 2025-04-24 19:53
 **/
public class UserReceiveAddressDTO extends UserReceiveAddress implements Serializable {
    private static final long serialVersionUID = 1L;
    private String receiveAddress;
    public String getReceiveAddress(){
        return getProvince() + getCity() + getRegion() + getDetailAddress();
    }
    public String getPhoneNumber(){
        return EncryptUtils.hidePhone(super.getPhoneNumber());
    }
}
